package chixing.day07.inherited;

public class Dog extends Animal{
    private String dogType;

    public Dog(){}

    public Dog(String dogType) {
        this.dogType = dogType;
    }

    public Dog(String animalName, float animalWeight, String dogType) {
        super(animalName, animalWeight);
        this.dogType = dogType;
    }

    public String getDogType() {
        return dogType;
    }

    public void setDogType(String dogType) {
        this.dogType = dogType;
    }

    @Override
    public String toString() {
        return "animalName = " + getAnimalName() + ",  animalWeight = " + getAnimalWeight() + ",  animalType = " +getDogType();
    }
}
